﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;

namespace ReceiptPrint.Models
{
    public class Template:BasePoco
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public new long ID { get; set; }
        [Display(Name = "名称")]
        public string Name { get; set; }
        [Display(Name = "标题")]
        public string Header { get; set; }
        [Display(Name = "子标题")]
        public string SubHeader { get; set; }

        public long Number { get; set; } 

        [Display(Name = "注脚")]
        public string Footer { get; set; }

        [Display(Name = "付款金额")]
        public float Money { get; set; }

        public long ExcelFileId { get; set; }

        public ExcelFile ExcelFile { get; set; }

        public List<ReceiptInfo> ReceiptInfoes { get; set; }
    }

}
